Skip to content

Conversation

greatsharp
Copy link
Contributor

No description provided.

@greatsharp
Copy link
Contributor Author

golangci-lint run is ok in local machine, submit go.sum, please check again


func init() {
flag.StringVar(&configPath, "c", "config/config.yaml", "set config yaml file path")
flag.StringVar(&configPath, "c", "config/config-raft.yaml", "set config yaml file path")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could keep config.yaml as its default configuration.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

min_alive_size: 5
min_alive_size: 5

log:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can comment out those lines to keep the stdout as its default output.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

ping_interval_seconds: 3
min_alive_size: 5

log:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

min_alive_size: 5
min_alive_size: 5

log:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@git-hulk
Copy link
Member

git-hulk commented Mar 2, 2025

@greatsharp Thanks for your contribution.

@greatsharp
Copy link
Contributor Author

how to run the golangci-lint, i run it locally, but no errors
Snipaste_2025-03-02_20-44-18

@git-hulk
Copy link
Member

git-hulk commented Mar 2, 2025

@greatsharp You need to run the lint command before committing the changed codes.

@codecov-commenter
Copy link

codecov-commenter commented Mar 2, 2025

Codecov Report

Attention: Patch coverage is 0% with 64 lines in your changes missing coverage. Please review.

Project coverage is 46.26%. Comparing base (6c56470) to head (f877515).
Report is 43 commits behind head on unstable.

Files with missing lines Patch % Lines
logger/logger.go 0.00% 56 Missing ⚠️
cmd/server/main.go 0.00% 8 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           unstable     #270      +/-   ##
============================================
+ Coverage     43.38%   46.26%   +2.88%     
============================================
  Files            37       45       +8     
  Lines          2971     4286    +1315     
============================================
+ Hits           1289     1983     +694     
- Misses         1544     2095     +551     
- Partials        138      208      +70     
Flag Coverage Δ
unittests 46.26% <0.00%> (+2.88%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@git-hulk git-hulk merged commit 817a884 into apache:unstable Mar 2, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants